﻿package kabam.rotmg.arena.control {
import kabam.rotmg.arena.model.CurrentArenaRunModel;
import kabam.rotmg.arena.view.ImminentWaveCountdownClock;
import kabam.rotmg.core.view.Layers;

import robotlegs.bender.bundles.mvcs.Command;

public class ImminentArenaWaveCommand extends Command {

    [Inject]
    public var runtime:int;
    [Inject]
    public var model:CurrentArenaRunModel;
    [Inject]
    public var layers:Layers;


    override public function execute():void {
        this.model.incrementWave();
        this.model.entry.runtime = this.runtime;
        this.layers.mouseDisabledTop.addChild(new ImminentWaveCountdownClock());
    }


}
}
